package com.karrysong.blog_springboot.entity;

import lombok.Data;

/**
 * @ClassName: Article
 * @Author: KarrySong
 * @Date: 2022/8/2 15:15
 * @Description:
 */


@Data
public class Article {
    public static final int Article_TOP = 1;

    public static final int Article_Common = 0;

    private Long id;

    private String title;

    /**
     * 摘要
     */
    private String summary;

    /**
     * 点赞
     */
    private Integer supportCounts;

    /**
     * 评论数
     */
    private Integer commentCounts;

    /**
     * 查看次数
     */
    private Integer viewCounts;

    /**
     * 作者id
     */
    private Long authorId;
    /**
     * 内容id
     */
    private Long bodyId;
    /**
     *类别id
     */
    private Long categoryId;

    /**
     * 置顶
     */
    private Integer weight = Article_Common;

    /**
     * 创建时间
     */
    private Long createDate;

    /**
     * vip专属
     */
    private Integer isVipView;

    /**
     * 是否公开
     */
    private Integer isOpenView;

    /**
     * 是否封禁
     */
    private Integer isCloseView;
}
